<div id="qr-output"></div><input type="text" ng-model="$ctrl.model" ng-enter="$ctrl.generate()"> <a class="btn btn-success" ng-click="$ctrl.generate()">Generate</a>